/*1465定长子串中元音最大数目*/
/*滑动窗口*/
bool isVowels(char c) {
    c = tolower(c);  // 转换为小写
    return c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u';
}
int maxVowels(char* s, int k) {
    int MaxVowels=0;
    int CurrentVowels=0;
    for(int i=0;i<k&&s[i]!='\0';i++)
    {
        if(isVowels(s[i]))
        {
            CurrentVowels++;
        }

    }
    MaxVowels=CurrentVowels;
    for(int j=k;s[j]!='\0';j++)
    {
        if(isVowels(s[j-k]))
        {
            CurrentVowels--;
        }
        if(isVowels(s[j]))
        {
            CurrentVowels++;
        }
        if(CurrentVowels>MaxVowels)
        {
            MaxVowels=CurrentVowels;
        }
    }

    return MaxVowels;

   
}